package com.ynet.finmall.model;

import java.io.Serializable;
import java.util.Date;

public class ImLogincontrol implements Serializable {
    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户姓名
     */
    private String userName;

    /**
     * 即首次登录时间
     */
    private Date firstTime;

    /**
     * 登录时间
     */
    private Date lastTimeSuccess;

    /**
     * 上次登录失败时间
     */
    private Date lastTimeFail;

    /**
     * 当日连续登录失败次数
     */
    private String dayFailCount;

    /**
     * 总计连续登录失败次数
     */
    private String totalFailCount;

    /**
     * 总成功登录次数
     */
    private String totalSuccessCount;

    /**
     * 最近登录时间
     */
    private Date latelyLoginTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 登录设备mac地址
     */
    private String loginMac;

    private static final long serialVersionUID = 1L;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public Date getFirstTime() {
        return firstTime;
    }

    public void setFirstTime(Date firstTime) {
        this.firstTime = firstTime;
    }

    public Date getLastTimeSuccess() {
        return lastTimeSuccess;
    }

    public void setLastTimeSuccess(Date lastTimeSuccess) {
        this.lastTimeSuccess = lastTimeSuccess;
    }

    public Date getLastTimeFail() {
        return lastTimeFail;
    }

    public void setLastTimeFail(Date lastTimeFail) {
        this.lastTimeFail = lastTimeFail;
    }

    public String getDayFailCount() {
        return dayFailCount;
    }

    public void setDayFailCount(String dayFailCount) {
        this.dayFailCount = dayFailCount == null ? null : dayFailCount.trim();
    }

    public String getTotalFailCount() {
        return totalFailCount;
    }

    public void setTotalFailCount(String totalFailCount) {
        this.totalFailCount = totalFailCount == null ? null : totalFailCount.trim();
    }

    public String getTotalSuccessCount() {
        return totalSuccessCount;
    }

    public void setTotalSuccessCount(String totalSuccessCount) {
        this.totalSuccessCount = totalSuccessCount == null ? null : totalSuccessCount.trim();
    }

    public Date getLatelyLoginTime() {
        return latelyLoginTime;
    }

    public void setLatelyLoginTime(Date latelyLoginTime) {
        this.latelyLoginTime = latelyLoginTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getLoginMac() {
        return loginMac;
    }

    public void setLoginMac(String loginMac) {
        this.loginMac = loginMac == null ? null : loginMac.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", userName=").append(userName);
        sb.append(", firstTime=").append(firstTime);
        sb.append(", lastTimeSuccess=").append(lastTimeSuccess);
        sb.append(", lastTimeFail=").append(lastTimeFail);
        sb.append(", dayFailCount=").append(dayFailCount);
        sb.append(", totalFailCount=").append(totalFailCount);
        sb.append(", totalSuccessCount=").append(totalSuccessCount);
        sb.append(", latelyLoginTime=").append(latelyLoginTime);
        sb.append(", remark=").append(remark);
        sb.append(", loginMac=").append(loginMac);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}